Transforms that can be applied to buffers as they are displayed to a window.
Legacy window pixel format names, kept for backwards compatibility. New code and APIs should use AHARDWAREBUFFER_FORMAT_*.
Acquire a reference on the given {@link ANativeWindow} object. This prevents the object from being deleted until the reference is removed.
Get the dataspace of the buffers in window. \return the dataspace of buffers in window, ADATASPACE_UNKNOWN is returned if dataspace is unknown, or -EINVAL if window is invalid.
Return the current pixel format (AHARDWAREBUFFER_FORMAT_*) of the window surface.
Return the current height in pixels of the window surface.
Return the current width in pixels of the window surface.
Lock the window's next drawing surface for writing. inOutDirtyBounds is used as an in/out parameter, upon entering the function, it contains the dirty region, that is, the region the caller intends to redraw. When the function returns, inOutDirtyBounds is updated with the actual area the caller needs to redraw -- this region is often extended by {@link ANativeWindow_lock}.
Remove a reference that was previously acquired with {@link ANativeWindow_acquire()}.
All buffers queued after this call will be associated with the dataSpace parameter specified.
Change the format and size of the window buffers.
Set a transform that will be applied to future buffers posted to the window.
Unlock the window's drawing surface after previously locking it, posting the new buffer to the display.
Struct that represents a windows buffer.
@file native_window.h @brief API for accessing a native window.